home *** CD-ROM | disk | FTP | other *** search
/ Sunday Savers: Singing Fun! / Sunday Savers: Singing Fun!.iso / mac / Xtras / Buddy API 1.6 / Buddy API Docs.swf / texts / 1542.txt < prev    next >
Encoding:
Text File  |  2004-08-31  |  4.5 KB  |  187 lines

  1. 133
  2. --- RECORDSEPARATOR ---
  3.  
  4. --- RECORDSEPARATOR ---
  5. XCopyProgress 
  6. --- RECORDSEPARATOR ---
  7. Platform:
  8. --- RECORDSEPARATOR ---
  9.  
  10. --- RECORDSEPARATOR ---
  11. Windows and Macintosh
  12. --- RECORDSEPARATOR ---
  13.  
  14. --- RECORDSEPARATOR ---
  15. Description:
  16. --- RECORDSEPARATOR ---
  17.  
  18. --- RECORDSEPARATOR ---
  19. baXCopyProgress copies multiple files, including sub-folders, while displaying a 
  20. --- RECORDSEPARATOR ---
  21. progress dialog
  22. --- RECORDSEPARATOR ---
  23.  
  24. --- RECORDSEPARATOR ---
  25. Usage:
  26. --- RECORDSEPARATOR ---
  27.  
  28. --- RECORDSEPARATOR ---
  29. Result = baXCopyProgress( SourceDir, DestDir, FileSpec, Overwrite, MakeDir, 
  30. --- RECORDSEPARATOR ---
  31. Title, ButtonText, Flags )
  32. --- RECORDSEPARATOR ---
  33.  
  34. --- RECORDSEPARATOR ---
  35. Arguments:
  36. --- RECORDSEPARATOR ---
  37.  
  38. --- RECORDSEPARATOR ---
  39. String, string, string, string, integer, string, string, integer. 
  40. --- RECORDSEPARATOR ---
  41. SourceDir is the folder to copy from. 
  42. --- RECORDSEPARATOR ---
  43. DestDir is the folder to copy to. 
  44. --- RECORDSEPARATOR ---
  45. FileSpec determines what files are copied. 
  46. --- RECORDSEPARATOR ---
  47. Overwrite determines how the copy is done. Can be: 
  48. --- RECORDSEPARATOR ---
  49. "Always" 
  50. --- RECORDSEPARATOR ---
  51. always copies the file 
  52. --- RECORDSEPARATOR ---
  53. "IfNewer" 
  54. --- RECORDSEPARATOR ---
  55. copies the file if SourceFile is newer than DestFile 
  56. --- RECORDSEPARATOR ---
  57. "IfNotExist" 
  58. --- RECORDSEPARATOR ---
  59. copies only if DestFile does not already exist 
  60. --- RECORDSEPARATOR ---
  61. If MakeDir is true, any empty directories will be created. 
  62. --- RECORDSEPARATOR ---
  63. Title is the title of the dialog box. 
  64. --- RECORDSEPARATOR ---
  65. ButtonText is the text to use in the Cancel button. 
  66. --- RECORDSEPARATOR ---
  67. Flags changes the behaviour of the dialog, see notes for details.
  68. --- RECORDSEPARATOR ---
  69.  
  70. --- RECORDSEPARATOR ---
  71. Returns:
  72. --- RECORDSEPARATOR ---
  73.  
  74. --- RECORDSEPARATOR ---
  75. Integer. 
  76. --- RECORDSEPARATOR ---
  77. Returns 0 if the file was copied successfully, otherwise one of these: 
  78. --- RECORDSEPARATOR ---
  79. --- RECORDSEPARATOR ---
  80. Invalid Source file name 
  81. --- RECORDSEPARATOR ---
  82. --- RECORDSEPARATOR ---
  83. Invalid Dest file name 
  84. --- RECORDSEPARATOR ---
  85. --- RECORDSEPARATOR ---
  86. Error reading the Source 
  87. --- RECORDSEPARATOR ---
  88. file 
  89. --- RECORDSEPARATOR ---
  90. --- RECORDSEPARATOR ---
  91. Error writing the Dest file 
  92. --- RECORDSEPARATOR ---
  93. --- RECORDSEPARATOR ---
  94. Couldn't create directory for Dest file 
  95. --- RECORDSEPARATOR ---
  96. --- RECORDSEPARATOR ---
  97. Dest file exists 
  98. --- RECORDSEPARATOR ---
  99. --- RECORDSEPARATOR ---
  100. Dest file is newer that Source file 
  101. --- RECORDSEPARATOR ---
  102. --- RECORDSEPARATOR ---
  103. No files matched the specified type 
  104. --- RECORDSEPARATOR ---
  105. --- RECORDSEPARATOR ---
  106. User cancelled the copy
  107. --- RECORDSEPARATOR ---
  108.  
  109. --- RECORDSEPARATOR ---
  110. Examples:
  111. --- RECORDSEPARATOR ---
  112.  
  113. --- RECORDSEPARATOR ---
  114. Director: 
  115. --- RECORDSEPARATOR ---
  116. OK = baXCopyProgress( "c:\data" , "d:\backup" , "*.dat", "IfNewer", true, "Backing 
  117. --- RECORDSEPARATOR ---
  118. up files... ", "Cancel", 0 ) 
  119. --- RECORDSEPARATOR ---
  120. Authorware: 
  121. --- RECORDSEPARATOR ---
  122. OK := baXCopyProgress( "c:\\data" , "d:\\backup" , "*.dat", "IfNewer" , true, 
  123. --- RECORDSEPARATOR ---
  124. "Backing up files... ", "Cancel", 0 )
  125. --- RECORDSEPARATOR ---
  126.  
  127. --- RECORDSEPARATOR ---
  128. Notes:
  129. --- RECORDSEPARATOR ---
  130.  
  131. --- RECORDSEPARATOR ---
  132. By default, this function will not overwrite an existing file if that file is marked as 
  133. --- RECORDSEPARATOR ---
  134. read-only. However, on Windows, by adding 
  135. --- RECORDSEPARATOR ---
  136. "
  137. --- RECORDSEPARATOR ---
  138. +
  139. --- RECORDSEPARATOR ---
  140. --- RECORDSEPARATOR ---
  141. to the 
  142. --- RECORDSEPARATOR ---
  143. "
  144. --- RECORDSEPARATOR ---
  145. Always
  146. --- RECORDSEPARATOR ---
  147. --- RECORDSEPARATOR ---
  148. and 
  149. --- RECORDSEPARATOR ---
  150. "
  151. --- RECORDSEPARATOR ---
  152. IfNewer
  153. --- RECORDSEPARATOR ---
  154. --- RECORDSEPARATOR ---
  155. options (eg "Always+" or "IfNewer+"), the destination files will be overwritten if they 
  156. --- RECORDSEPARATOR ---
  157. are read-only. 
  158. --- RECORDSEPARATOR ---
  159. The return value will not be 0 if any file is not copied. For example, if you specify 
  160. --- RECORDSEPARATOR ---
  161. baXCopyProgress( "c:\data" , "d:\backup" , "*.*" , "IfNewer", ....... ) 
  162. --- RECORDSEPARATOR ---
  163. and any of the files in c:\data are newer than the ones in d:\backup, the return 
  164. --- RECORDSEPARATOR ---
  165. result will be 7 (Dest file is newer than Source). A result of 0 will be returned only if 
  166. --- RECORDSEPARATOR ---
  167. none of the files in c:\data is newer than d:\backup. 
  168. --- RECORDSEPARATOR ---
  169. A return value of 6 (Dest file exists) can only be returned when Overwrite is 
  170. --- RECORDSEPARATOR ---
  171. "IfNotExist".
  172. --- RECORDSEPARATOR ---
  173.  
  174. --- RECORDSEPARATOR ---
  175. (continued next page)